[module/pkg]
type = custom/script
exec = ~/.config/polybar/scripts/updates.zsh
format-background = ${xrdb:color3}
format-padding = 2
format-font = 4
tail = true

[module/bspwm]
type = internal/bspwm
label-focused-foreground = ${xrdb:foreground}
label-focused = 
label-focused-background = ${xrdb:color3}
label-focused-underline= ${xrdb:background}
label-focused-padding = 2

; set label properties
label-occupied = %icon%
label-occupied-padding = 2
label-occupied-foreground = ${xrdb:foreground}
label-urgent = %icon%!
label-urgent-background = ${xrdb:color1}
label-urgent-padding = 2
label-empty = 
label-empty-foreground = ${xrdb:color3}
label-empty-padding = 2

; set icons for workspace states
ws-icon-0 = I;
ws-icon-1 = II;
ws-icon-2 = III;
ws-icon-3 = IV;
ws-icon-4 = V;
ws-icon-5 = VI;
ws-icon-6 = VII;
ws-icon-7 = VIII;
ws-icon-8 = IX;
ws-icon-9 = X;

#[module/workspaces]
#type = internal/xworkspaces
#pin-workspaces = false
#enable-click = true
#enable-scroll = true
#format-padding = 1
#format-font = 13
#label-font = 13
#icon-default = 

#format = <label-state>
#format-background = ${xrdb:background}
#label-active = 
#label-occupied = 
#label-urgent = 
#label-empty = 

#label-empty-padding = 1
#label-active-padding = 1
#label-urgent-padding = 1
#label-occupied-padding = 1

#label-empty-foreground = ${xrdb:color3}
#label-active-foreground = ${xrdb:color19}
#label-urgent-foreground = ${xrdb:background}
#label-occupied-foreground = ${xrdb:foreground}

[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%

[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = " %layout%"
label-layout-foreground = ${xrdb:color4}
label-layout-background = ${xrdb:background}
label-layout-padding = 2
label-indicator-padding = 0
label-indicator-background = #ff0000

#[module/mpd]
#type = internal/mpd
#format-online = <label-song>  <icon-prev> <icon-stop> <toggle> <icon-next>
#format-online-foreground = ${xrdb:color3}
#icon-prev = 
#icon-stop = 
#icon-play = 
#icon-pause = 
#icon-next = 
#label-song-maxlen = 25
#label-song-ellipsis = true

[module/mpd]
type = internal/mpd
format-online =   <label-song>
label-song = %artist% - %title%
label-offline = ""
label-song-maxlen = 35
format-online-padding = 2
format-online-foreground = ${xrdb:color3}

[module/cpu]
type = internal/cpu
interval = 1
label = " %percentage% %"
label-foreground = ${xrdb:color3}
label-background = ${xrdb:background}
label-padding = 2

[module/memory]
type = internal/memory
interval = 1
label = " %mb_used%"
label-foreground = ${xrdb:color3}
label-background = ${xrdb:background}
label-padding = 2

[module/eth]
type = internal/network
interface = enp5s0
interval = 3.0
;format-connected-underline = ${xrdb:color4}
format-connected-prefix = " "
format-connected-prefix-background = ${xrdb:background}
format-connected-prefix-foreground = ${xrdb:color3}
label-connected = %downspeed%
label-connected-background = ${xrdb:background}
label-connected-foreground = ${xrdb:color3}
format-disconnected =

[module/date]
type = internal/date
interval = 1
date =
date-alt = "  %a, %d/%m/%Y"
time = " %H:%M "
format-prefix-foreground = ${xrdb:foreground}
format-background = ${xrdb:background}
label = "%date% %time%"
label-foreground = ${xrdb:foreground}

[module/powermenu]
type = custom/text
content = 
content-foreground = ${xrdb:color3}
content-background = ${xrdb:background}
content-padding = 1
click-left = ~/.config/polybar/scripts/powermenu 
click-right = ~/.config/polybar/scripts/powermenu 

[module/alsa]
type = internal/alsa
format-volume = "<label-volume>"
label-volume = " %percentage% %"
label-volume-foreground = ${xrdb:color3}
format-volume-background = ${xrdb:background}
label-volume-padding = 2
format-muted-prefix = " "
format-muted-padding = 2
format-muted-foreground = ${xrdb:color1}
format-muted-background = ${xrdb:background}
label-muted = "muted"


